package com.marktotop.service.impl;

import com.marktotop.entity.Admin;
import com.marktotop.mapper.AdminMapper;
import com.marktotop.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AdminServiceImpl
 *
 * @author WXLD
 * @Data 2021/6/29
 * @Since 1.0
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> getAllAdmin() {
        return adminMapper.getAll();
    }
}
